/*
 * =====================================================================================
 *
 *       Filename:  test_active_object.cxx
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  12/28/2010 07:52:04 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ken), chen_kenz@emc.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include <string>
#include <iostream>
#include "cl_active_object.hxx"
#include "cl_pc_queue.hxx"
#include "cl_singleton.hxx"

using namespace std;
using namespace neo;

class Backgrounder
{
public:
  void print( const string& msg )
  {
    m_activeObject.send( [msg](void) {
				cout << msg << "\n";
				} );
  }

private:
  CLActiveObject m_activeObject;
};

class A
{
};

int main( int argc, char* argv[] )
{
	{
    Backgrounder bg;
    bg.print( "I love you ..." );
    bg.print( "and I love my dog ..." );
	}
 
	sleep(3);

  return 0;
}

